<!-- HTML header for doxygen 1.8.9.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>ROSS: core/hash-quadratic.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <a href="https://github.com/ROSS-org/ROSS">
   <div id="projectname">ROSS
   </div>
   </a>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_af18cf245e3394ab3b436135935cfd6e.html">core</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">hash-quadratic.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="hash-quadratic_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef INC_hash_quadratic_h</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define INC_hash_quadratic_h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno"><a class="line" href="hash-quadratic_8h.html#ae66e0da8248f0760651b09c17d325ac9">    4</a></span>&#160;<span class="preprocessor">#define MAX_FRACTION 0.50</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>      <a class="code" href="hash-quadratic_8h.html#a402881288117a11e07e28676329e4bd1">g_tw_hash_size</a>;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="hash-quadratic_8h.html#a411380ad19d70095524d3ee278dc3860">    8</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structtw__hash.html">tw_hash</a> <a class="code" href="structtw__hash.html">tw_hash</a>;</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="structtw__hash.html">   10</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structtw__hash.html">tw_hash</a></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;{</div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="structtw__hash.html#aba97abc2c5862f2e79d3fc34dab362ee">   12</a></span>&#160;        <a class="code" href="structtw__event.html">tw_event</a>     ***<a class="code" href="structtw__hash.html#aba97abc2c5862f2e79d3fc34dab362ee">incoming</a>;</div>
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="structtw__hash.html#a799bedf0c5c0529370f4a8ad8e208fd2">   13</a></span>&#160;        <span class="keywordtype">int</span>            *<a class="code" href="structtw__hash.html#a799bedf0c5c0529370f4a8ad8e208fd2">num_stored</a>;</div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="structtw__hash.html#a49c34779237a30ddf373e17d4f4a5172">   14</a></span>&#160;        <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>   *<a class="code" href="structtw__hash.html#a49c34779237a30ddf373e17d4f4a5172">hash_sizes</a>;</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;};</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * hash-quadratic.c</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span>    *<a class="code" href="hash-quadratic_8h.html#aebe8a594c0fe5a367f194e7ba7e1aa80">tw_hash_create</a>();</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span>     <a class="code" href="hash-quadratic_8h.html#a4e8a48f209c2574ac4755605ac42f773">tw_hash_insert</a>(<span class="keywordtype">void</span> *h, <a class="code" href="structtw__event.html">tw_event</a> * event, <span class="keywordtype">long</span> <a class="code" href="avl__tree_8c.html#ac4c639748d4d5a271d6c54a18f614605">pe</a>);</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">extern</span> <a class="code" href="structtw__event.html">tw_event</a> *<a class="code" href="hash-quadratic_8h.html#af2da87c210aeb3433d50ee3bcb139e20">tw_hash_remove</a>(<span class="keywordtype">void</span> *h, <a class="code" href="structtw__event.html">tw_event</a> * event, <span class="keywordtype">long</span> <a class="code" href="avl__tree_8c.html#ac4c639748d4d5a271d6c54a18f614605">pe</a>);</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="hash-quadratic_8h_html_aebe8a594c0fe5a367f194e7ba7e1aa80"><div class="ttname"><a href="hash-quadratic_8h.html#aebe8a594c0fe5a367f194e7ba7e1aa80">tw_hash_create</a></div><div class="ttdeci">void * tw_hash_create()</div><div class="ttdef"><b>Definition:</b> <a href="hash-quadratic_8c_source.html#l00032">hash-quadratic.c:32</a></div></div>
<div class="ttc" id="hash-quadratic_8h_html_a4e8a48f209c2574ac4755605ac42f773"><div class="ttname"><a href="hash-quadratic_8h.html#a4e8a48f209c2574ac4755605ac42f773">tw_hash_insert</a></div><div class="ttdeci">void tw_hash_insert(void *h, tw_event *event, long pe)</div><div class="ttdef"><b>Definition:</b> <a href="hash-quadratic_8c_source.html#l00080">hash-quadratic.c:80</a></div></div>
<div class="ttc" id="structtw__hash_html_a799bedf0c5c0529370f4a8ad8e208fd2"><div class="ttname"><a href="structtw__hash.html#a799bedf0c5c0529370f4a8ad8e208fd2">tw_hash::num_stored</a></div><div class="ttdeci">int * num_stored</div><div class="ttdef"><b>Definition:</b> <a href="hash-quadratic_8h_source.html#l00013">hash-quadratic.h:13</a></div></div>
<div class="ttc" id="hash-quadratic_8h_html_af2da87c210aeb3433d50ee3bcb139e20"><div class="ttname"><a href="hash-quadratic_8h.html#af2da87c210aeb3433d50ee3bcb139e20">tw_hash_remove</a></div><div class="ttdeci">tw_event * tw_hash_remove(void *h, tw_event *event, long pe)</div><div class="ttdef"><b>Definition:</b> <a href="hash-quadratic_8c_source.html#l00206">hash-quadratic.c:206</a></div></div>
<div class="ttc" id="structtw__event_html"><div class="ttname"><a href="structtw__event.html">tw_event</a></div><div class="ttdoc">Event Stucture. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00250">ross-types.h:250</a></div></div>
<div class="ttc" id="structtw__hash_html_aba97abc2c5862f2e79d3fc34dab362ee"><div class="ttname"><a href="structtw__hash.html#aba97abc2c5862f2e79d3fc34dab362ee">tw_hash::incoming</a></div><div class="ttdeci">tw_event *** incoming</div><div class="ttdef"><b>Definition:</b> <a href="hash-quadratic_8h_source.html#l00012">hash-quadratic.h:12</a></div></div>
<div class="ttc" id="avl__tree_8c_html_ac4c639748d4d5a271d6c54a18f614605"><div class="ttname"><a href="avl__tree_8c.html#ac4c639748d4d5a271d6c54a18f614605">pe</a></div><div class="ttdeci">tw_pe * pe</div><div class="ttdef"><b>Definition:</b> <a href="avl__tree_8c_source.html#l00011">avl_tree.c:11</a></div></div>
<div class="ttc" id="hash-quadratic_8h_html_a402881288117a11e07e28676329e4bd1"><div class="ttname"><a href="hash-quadratic_8h.html#a402881288117a11e07e28676329e4bd1">g_tw_hash_size</a></div><div class="ttdeci">unsigned int g_tw_hash_size</div><div class="ttdef"><b>Definition:</b> <a href="hash-quadratic_8c_source.html#l00021">hash-quadratic.c:21</a></div></div>
<div class="ttc" id="structtw__hash_html"><div class="ttname"><a href="structtw__hash.html">tw_hash</a></div><div class="ttdef"><b>Definition:</b> <a href="hash-quadratic_8h_source.html#l00010">hash-quadratic.h:10</a></div></div>
<div class="ttc" id="structtw__hash_html_a49c34779237a30ddf373e17d4f4a5172"><div class="ttname"><a href="structtw__hash.html#a49c34779237a30ddf373e17d4f4a5172">tw_hash::hash_sizes</a></div><div class="ttdeci">unsigned int * hash_sizes</div><div class="ttdef"><b>Definition:</b> <a href="hash-quadratic_8h_source.html#l00014">hash-quadratic.h:14</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
